import request from '@/utils/request'

export function get(params) {
  return request({
    url: '/api/dataimportexporttask/getImportPage',
    method: 'get',
    params
  })
}

export function uploadFile(data) {
  return request({
    url: '/api/dataimportexporttask/importByFile',
    data: data,
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data;boundary=' + new Date().getTime()
    }
  })
}

export function uploadByPath(params) {
  return request({
    url: '/api/dataimportexporttask/importByPath',
    method: 'post',
    params
  })
}
export default { get, uploadFile, uploadByPath }
